package com.lone.smallmovie.dao;

import com.lone.smallmovie.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

public interface UserDao {
    User login(@Param("user_account") String userAccount,@Param("user_password") String password);

    User queryUserByUserAccount(@Param("user_account") String userAccount);

    int registered(@Param("user_id") String userId,@Param("user_account") String userAccount,@Param("user_password") String password );

    int updateNickNameByUserAccount(@Param("user_name") String nickName,@Param("user_account") String userAccount);

    int changeLoginPasswordByUserAccount(@Param("user_account") String userAccount,@Param("user_password") String loginPassword);

}